package guoanmaker.operator.business.model;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import guoanmaker.operator.helper.common.abstractobj.IdEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@Data
@Entity
@Table(name="t_operator_news_list")
public class OperatorNewsList extends IdEntity {
	private String newsTitle;
	private String newsCreater;//作者
	private String photoPath;//标题图片
	private String url;
	private Date createDate;
	private Date updateDate;   //最后一次操作
	private Date newsDate;//新闻时间
	private Integer status;//1发布的新闻 2是草稿 3是撤回
	private String newsInfo;
	private String newsInstruction;//新闻内容
	private String newsType;//新闻种类，新闻类别表,名称存汉字
	@OneToOne
	@JoinColumn(name="userid")
	private OperatorUser oeratorUser;

	public OperatorNewsList(String newsTitle) {
		this.newsTitle = newsTitle;
	}

	public OperatorNewsList(String newsTitle, String url) {
		this.newsTitle = newsTitle;
		this.url = url;
	}

}
